# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=aphopper
pkgver=0.3
pkgrel=4
groups=('blackarch' 'blackarch-wireless')
arch=('x86_64' 'aarch64')
pkgdesc='A program that automatically hops between access points of different wireless networks.'
url='http://aphopper.sourceforge.net/'
license=('GPL')
makedepends=('git')
source=("git+https://github.com/BlackArch/$pkgname.git")
sha512sums=('SKIP')

build() {
  cd $pkgname

  CPPFLAGS= ./configure --prefix=/usr

  make CC="gcc $CFLAGS"
}

package() {
  cd $pkgname

  install -Dm 755 hopper "$pkgdir/usr/bin/$pkgname"
}

